package com.uniview.entity.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * 角色表
 * @author Qingtian Lei
 * 
 */
@Entity
@Table(name = "sd_role")
public class Role implements Serializable {

	private static final long serialVersionUID = -1722640050300167944L;

	public int id;

	public String roleName;   //角色名称

	public String roleDesc;  //角色描述

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date created;  //创建时间

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date modified; //修改时间

	public String getRoleName() {
		return roleName;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleDesc() {
		return roleDesc;
	}

	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	public Date getModified() {
		return modified;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}

}